package com.eco.fanliapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;


/**
 * 子账号表 sub_account
 * 
 * @author xiaoxx
 * @date 2019-05-20
 */
@Getter
@Setter
@Data
@TableName("sub_account")//@TableName中的值对应着表名
public class SubAccount implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	@TableId(type = IdType.AUTO)
	private Integer id;
	/**  */
	@TableField(exist=false)
	private Date createTime;
	/**  */
	private String nickName;
	/**  */
	private String password;
	/**  */
	@TableField(exist=false)
	private Date updateTime;
	/**  */
	private Integer userId;
	/**  */
	private String username;
	/**  */
	private Integer roleId;

	@TableField(exist=false)
	private RoleInfo role;

	private Integer companyId;

	@TableField(exist=false)
	private String companyName;

	private Integer status;
	//是否需要验证ip
	private Integer isVerifyIp;
}
